package com.zjw.mybatis.model;

import java.util.Date;

public class User {

	private long id;
	private String username;
	private String nickname;
	private String password;
	private int age;
	private Date createTime;

	public User() {
		super();
	}
	
	public User(String username, String nickname, String password, int age,
			Date createTime) {
		super();
		this.username = username;
		this.nickname = nickname;
		this.password = password;
		this.age = age;
		this.createTime = createTime;
	}


	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getNickname() {
		return nickname;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	@Override
	public String toString() {
		return "User [id=" + id + ", username=" + username + ", nickname="
				+ nickname + ", password=" + password + ", age=" + age
				+ ", createTime=" + createTime + "]";
	}
	
}
